package com.zlc.workflow.core.instance.model;

import com.zlc.workflow.core.process.model.NodeApproveConfig;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;

@Getter
@Setter
public class NextNode {

    @ApiModelProperty(value = "节点ID")
    private String nodeId;

    @ApiModelProperty(value = "节点名称")
    private String nodeName;

    @ApiModelProperty(value = "路线ID")
    private String pathNodeId;

    @ApiModelProperty(value = "节点类型")
    private String nodeType;

    @ApiModelProperty(value = "审批人是否由上一步用户选择")
    private Boolean approveSelectFlag;

    @ApiModelProperty(value = "审批人,如果当前节点是分支路线，则无数据")
    private LinkedList<NodeApproveUser> approveUsers = new LinkedList<>();

    public LinkedList<NodeApproveUser> getApproveUsers() {
        if(this.approveUsers == null){
            this.approveUsers = new LinkedList<>();
        }
        return this.approveUsers;
    }

}
